<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>THIENSUHACK (^_*)</title>
<?php echo $this->headLink()->appendStylesheet($this->baseURL.'/css/admin.css') ?>
<?php echo $this->headLink()->appendStylesheet($this->baseURL.'/css/template.css') ?>
<?php echo $this->headScript()->appendFile($this->baseURL.'/js/jquery-1.3.2.js','text/javascript');?>
<?php echo $this->headScript()->appendFile($this->baseURL.'/js/general.js','text/javascript');?>
<script type="text/javascript">
function gotoURL(url)
{
window.location = url;
}
</script>
</head>
<body id="page_bg">
<div id="container">


<!-- no search -->
<div id="nosearch"></div>
<!-- no search end-->


<!-- pill menu -->
<div id="pillmenu">
<ul id="mainlevel-nav">
	<li><a class="mainlevel-nav"
		href="<?php echo $this->baseURL;?>/index"><?php echo My_Translate::translate("HOME");?></a></li>
	<li><a class="mainlevel-nav"
		href="<?php echo $this->baseURL;?>/index/page/type/kinhdoanh/"><?php echo My_Translate::translate("OUR_SERVICES");?></a></li>
	<li><a class="mainlevel-nav"
		href="<?php echo $this->baseURL;?>/content/list/"><?php echo My_Translate::translate("LIBRARY");?></a></li>
	<li><a class="mainlevel-nav"
		href="<?php echo $this->baseURL;?>/question/"><?php echo My_Translate::translate("CONSULTANT");?></a></li>
	<li><a class="mainlevel-nav"
		href="<?php echo $this->baseURL;?>/index/page/type/tuyendung/"><?php echo My_Translate::translate("RECRUITMENT");?></a></li>
	<li><a class="mainlevel-nav"
		href="<?php echo $this->baseURL;?>/feedback/"><?php echo My_Translate::translate("CONTACT_US");?></a></li>
	<span style="float: right;padding-top: 10px;">
		<?php echo $this->language(); ?>
		</span>
</ul>
<!--<span class="breadcrumbs pathway">
Trang chá»§</span>-->
</div>
<!-- pill menu end-->


<!-- header -->
<div id="header">
	<div id="headerimg"></div>
	<table cellspacing="0" cellpadding="0">
		<tbody>
			<tr>
				<td>
				<h1><a href="#" style="color: #7C6B1B">THIENSUHACK (^_*)</a></h1>
				</td>
			</tr>
		</tbody>
	</table>
</div>
<!-- header end-->



<!-- content -->
<div id="content">
<div id="content_top">
<div id="content_bottom">


<!-- left column -->
<div id="leftcolumn">


<!-- module category -->
<div>
<!--<h3><?php echo My_Translate::translate("SITE_PRODUCT_CATEGORY");?></h3>
--><!--<ul style="padding-left: 0px;" class="menu">
<?php 
$service = new ProductCategoryService();
$data = $service->buildQueryData();
$categories = $data->query()->fetchAll();
foreach($categories as $category){	
?>
	<li class="level1 item1 ">
	<a
		href="<?php echo $this->url( array('action'=>'list','controller'=>'product','module'=>'site','id'=>$category['categoryId']),
'default', true) ?>"
		class="level1 item1 "> 
		<img width="30" height="30" src="<?php echo $this->baseURL?>/images/products/<?php echo $category['imageURL'];?>" />
		<span style="font-weight: bold;"><?php echo $category['categoryName'];?></span> </a></li>
<?php }?>
</ul>
-->
<table width="100%" height="100%">
<tr>
<td><img src="/images/web/icon_fa.gif"></img></td>
<td align="left"><a class="service_menu" href="/index/page/type/food">
<?php echo My_Translate::translate("MENU_FOOD");?></a></td>
<td valign="bottom"><img src="/images/web/icon_arrow.png"></img></td>
</tr>

<tr><td class="line" colspan="3"></td></tr>

<tr>
<td><img src="/images/web/icon_ict.gif"></img></td>
<td align="left"><a class="service_menu" href="/index/page/type/software">
<?php echo My_Translate::translate("MENU_SOFTWARE");?></a></td>
<td valign="bottom"><img src="/images/web/icon_arrow.png"></img></td>
</tr>

<tr><td class="line" colspan="3"></td></tr>

<tr>
<td><img src="/images/web/icon_sqa.jpg"></img></td>

<td align="left">
<script type="text/javascript" src="/js/fg.menu.js"></script>
<link type="text/css" href="/css/fg.menu.css" media="screen" rel="stylesheet" />
<script>
$(document).ready(function(){
	$('#flat').menu({ 
		content: $('#flat').next().html(), // grab content from this page
		showSpeed: 400 ,
		maxHeight: 180,
		width: 150,
		positionOpts: { offsetX: 10, offsetY: 20 }
	});
});
</script>
<a class="service_menu"  tabindex="0" href="#premix_menu"  id="flat">
<?php echo My_Translate::translate("MENU_PREMIX");?></a>
<div id="premix_menu" class="hidden">
<ul>
	<li><a href="" onclick="gotoURL('/product/list/type/giasuc/')">
	<?php echo My_Translate::translate("MENU_PREMIX_CATTLE");?></a></li>
	<li><a href="" onclick="gotoURL('/product/list/type/giacam/')">
	<?php echo My_Translate::translate("MENU_PREMIX_POULTRY");?></a></li>
	<li><a href="" onclick="gotoURL('/product/list/type/vatnuoikhac/')">
	<?php echo My_Translate::translate("MENU_PREMIX_OTHER");?></a></li>
</ul>
</div>
</td>
<td valign="bottom"><img src="/images/web/icon_arrow.png"></img></td>
</tr>

<tr><td class="line" colspan="3"></td></tr>

<tr>
<td><img src="/images/web/icon_erp.gif"></img></td>
<td align="left"><a class="service_menu" href="/product/list/type/phugia/">
<?php echo My_Translate::translate("MENU_ADDITIVES");?></a></td>
<td valign="bottom"><img src="/images/web/icon_arrow.png"></img></td>
</tr>

<tr><td class="line" colspan="3"></td></tr>

<tr>
<td><img src="/images/web/icon_emb.gif"></img></td>
<td align="left"><a class="service_menu" href="/product/list/type/thietbi/">
<?php echo My_Translate::translate("MENU_EQUIPMENT");?></a></td>
<td valign="bottom"><img src="/images/web/icon_arrow.png"></img></td>
</tr>
</table>


</div>

<!-- module category end-->

<br></br>



<!-- module ads -->
<div>

<!-- module caption -->
<table width="100%" cellspacing="0" cellpadding="0" border="0"><tr>
<td width="7">
<img width="7" height="21" src="/images/web/right_left.jpg"/>
</td>
<td bgcolor="#006b5e">
<table width="100%" cellspacing="0" cellpadding="2" border="0">
	<tbody>
		<tr>
			<td width="11"><img width="11" height="11"
				src="/images/web/right_icon.jpg" /></td>
			<td class="titleCopy"><?php echo My_Translate::translate("PARTNER");?></td>
		</tr>
	</tbody>
</table>
</td>
<td width="8">
<img width="8" height="21" src="/images/web/right_right.jpg"/>
</td>
</tr></table>
<!-- module caption end-->


<div class="module_content">
<!--<object width="180" height="100" border="0" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" 
classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000">
<param value="always" name="AllowScriptAccess"/>
<param value="High" name="quality"/>
<param value="transparent" name="wmode"/>
<embed width="180" height="100" allowscriptaccess="always" 
wmode="transparent" type="application/x-shockwave-flash" 
pluginspage="http://www.macromedia.com/go/getflashplayer" 
src="<?php echo $this->baseURL;?>/images/Beline.swf"/>
</object>-->
<?php 
$contactService = new ContactService();
$contactArray = $contactService->loadAll();
foreach($contactArray as $contact)
{?>
	<img src="/images/articles/<?php echo $contact->imageURL;?>" width="170">
<?php 
}
?>
</div>
</div>
<!-- module ads end-->

<br></br>

<!-- module online-->
<div>

<!-- module caption -->
<table width="100%" cellspacing="0" cellpadding="0" border="0"><tr>
<td width="7">
<img width="7" height="21" src="/images/web/right_left.jpg"/>
</td>
<td bgcolor="#006b5e">
<table width="100%" cellspacing="0" cellpadding="2" border="0">
	<tbody>
		<tr>
			<td width="11"><img width="11" height="11"
				src="/images/web/right_icon.jpg" /></td>
			<td class="titleCopy"><?php echo My_Translate::translate("STATISTIC");?></td>
		</tr>
	</tbody>
</table>
</td>
<td width="8">
<img width="8" height="21" src="/images/web/right_right.jpg"/>
</td>
</tr></table>
<!-- module caption end-->

<div class="module_content">

<?php 
$dbAdapter = Zend_Registry::get("dpAdapter");
$result = $dbAdapter->fetchRow('SELECT * FROM info');
$visited = $result['visited'];
?>
<?php echo My_Translate::translate("TOTAL_VISITED");?>: <?php echo $visited;?>
</div>

</div>
<!-- module online end-->


</div>
<!-- left column end-->


<!-- main column -->
<div id="maincolumn">
<div id="mainCenter">
<div class="nopad">
<!--<div class="componentheading">
	</div>
	--><?php echo $this->layout()->content; ?>
</div>
</div>
</div>
<!-- main column end-->


<!-- right column -->
<div id="rightcolumn" style="float: right;">

<!-- module login-->
<!--<div class="module">
<div>
<div>
<div>
<h3>Ä�Äƒng nháº­p</h3>
<form id="form-login" name="login" method="post"
	action="">
<fieldset class="input">
<p id="form-login-username"><label for="modlgn_username">TÃªn</label><br />
<input type="text" size="18" alt="username" class="inputbox"
	name="username" id="modlgn_username" /></p>
<p id="form-login-password"><label for="modlgn_passwd">Máº­t kháº©u</label><br />
<input type="password" alt="password" size="18" class="inputbox"
	name="passwd" id="modlgn_passwd" /></p>
<p id="form-login-remember"><label for="modlgn_remember">Ghi nhá»›
</label> <input type="checkbox" alt="Remember Me" value="yes" class="inputbox"
	name="remember" id="modlgn_remember" /></p>
<input type="submit" value="Login" class="button" name="Submit" /></fieldset>
<ul>
	<li><a href="">
	QuÃªn máº­t kháº©u?</a></li>
	<li><a
		href="">
	Forgot your username?</a></li>
	<li><a
		href="">
	Táº¡o tÃ i khoáº£n</a></li>
</ul>

<input type="hidden" value="com_user" name="option" /> <input
	type="hidden" value="login" name="task" /> <input type="hidden"
	value="L3Byb2plY3RzL1JlYWxFc3RhdGUvaW5kZXgucGhwP29wdGlvbj1jb21fY29udGVudCZ2aWV3PWZyb250cGFnZSZJdGVtaWQ9MQ=="
	name="return" /> <input type="hidden" value="1"
	name="78f38a9871a339212029760fb6575a86" /></form>
</div>
</div>
</div>
</div>
--><!-- module login end-->




 <!-- module san pham scroler-->
 
<div>
<!-- module caption -->
<table width="100%" cellspacing="0" cellpadding="0" border="0"><tr>
<td width="7">
<img width="7" height="21" src="/images/web/right_left.jpg"/>
</td>
<td bgcolor="#006b5e">
<table width="100%" cellspacing="0" cellpadding="2" border="0">
	<tbody>
		<tr>
			<td width="11"><img width="11" height="11"
				src="/images/web/right_icon.jpg" /></td>
			<td class="titleCopy"><?php echo My_Translate::translate("RANDOM_PRODUCT");?></td>
		</tr>
	</tbody>
</table>
</td>
<td width="8">
<img width="8" height="21" src="/images/web/right_right.jpg"/>
</td>
</tr></table>
<!-- module caption end-->

<div class="module_content">
<div style="padding-left: 20px; width: 150px;"><marquee width="150"
	height="300" onmouseout="this.start()" onmouseover="this.stop()"
	truespeed="true" scrolldelay="120" scrollamount="5" direction="down"
	behavior="scroll">
	
<?php 
$service = new ProductService();
$select = $service->getProductsWithType("tieubieu");
$products = $select->query()->fetchAll();
foreach($products as $product){
?>	
<div><a href="<?php echo $this->url( array('action'=>'detail','controller'=>'product','module'=>'site','id'=>$product['productId']),
'default', true) ?>"><img width="100" height="75"
	src="<?php echo $this->baseURL?>/images/products/<?php echo $product['imageURL'];?>" /></a>
<a
	href=""><br />
<?php echo $product['productName'];?></a> <br />
<br />
<br />
</div>
<?php }?>

</marquee></div>
</div>

</div>

<!-- module san pham end-->

<br></br>

<!-- module yahoo-->
<div>

<!-- module caption -->
<table width="100%" cellspacing="0" cellpadding="0" border="0"><tr>
<td width="7">
<img width="7" height="21" src="/images/web/right_left.jpg"/>
</td>
<td bgcolor="#006b5e">
<table width="100%" cellspacing="0" cellpadding="2" border="0">
	<tbody>
		<tr>
			<td width="11"><img width="11" height="11"
				src="/images/web/right_icon.jpg" /></td>
			<td class="titleCopy"><?php echo My_Translate::translate("ONLINE_SUPPORT");?></td>
		</tr>
	</tbody>
</table>
</td>
<td width="8">
<img width="8" height="21" src="/images/web/right_right.jpg"/>
</td>
</tr></table>
<!-- module caption end-->

<div class="module_content">
<a href="ymsgr:sendim?don_kihotevn"><img src="http://opi.yahoo.com/online?u=don_kihotevn&m=g&t=2" border=0></a><br><br>
<a href="ymsgr:sendim?don_kihotevn"><img src="http://opi.yahoo.com/online?u=don_kihotevn&m=g&t=2" border=0></a><br><br>
</div>

</div>
<!-- module yahoo end-->


</div>
<!-- right column end -->


<div class="clr"></div>

</div>
</div>
</div>
<!-- content end-->


<!-- footer-->
<div id="footer"> 
@ Copyright 2011-2012 THIENSUHACK (^_*)<br>
<?php echo My_Translate::translate("ADDRESS");?>
</div>
<!-- footer end-->


</div>
</body>
</html>